<?php 
defined('IN_SITE') or exit('Access Denied');
get_header();
?>
 
<form name="myform" method="post" action="?module=<?=$module?>&action=edit&areaid=<?=$areaid?>">

<div class="tag_menu" style="width:99%;margin-top:10px;">
	<ul>
		<li><a onClick="ShowTabs(0)" id="TabTitle0" href="###" class="selected">基本信息</a></li>
		<li><a onClick="ShowTabs(1)" id="TabTitle1" href="###">高级设置</a></li>
	</ul>
</div>
<table cellpadding="0" cellspacing="1" class="table_form">
 <!-- <caption>修改地区</caption>-->
  <tbody id='Tabs0' style='display:'>
  <tr>
  <th><strong>所属地区</strong></th>
  <td>
<?=form::select_area('info[parentid]', '', '无（作为一级地区）', 0, $parentid)?>  <font color="red">*</font>
  </td>
  </tr>
    <tr>
      <th><strong>地区名称</strong></th>
      <td><input name='info[name]' type='text' id='name' size='40' maxlength='50' require="true" datatype="limit" min="1" max="50"msg="字符长度范围必须为1到50位"  value='<?=$name?>'>  <font color="red">*</font></td>
    </tr>
    </tbody>
    <tbody id='Tabs1' style='display:none'>
        <tr>
          <th><strong>地区目录</strong><br/>名称只能为字母、数字、下划线，中划线</th>
          <td><input name='info[dir]' type='text' id='dir' size='20' maxlength='50' require="false" datatype="limit|ajax" min="1" max="50" url="?module=area&action=checkdir&parentid=<?=$parentid?>" msg="字符长度范围必须为1到50位|" value='<?=$dir?>'></td>
        </tr>
        <tr>
          <th><strong>地区图片</strong></th>
          <td><?=form::upload_image('info[image]', 'image', $image)?>&nbsp;<?=file_select('image', $catid, 1)?></td>
        </tr>
        <tr>
          <th width='30%'><strong>地区描述</strong><br/>255字符以内的文字描述</th>
          <td><textarea name='info[intro]' id='intro' style="width:90%;height:50px"><?=$intro?></textarea></td>
        </tr> 
        <tr>
          <th><strong>地区模板</strong></th>
          <td><?=form::select_template('default', 'info[template]', 'template', $template, '', 'area')?></td>
        </tr>
    </tbody>
	<tr>
      <th></th>
      <td><input type="submit" name="dosubmit" value=" 确定 ">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value=" 重置 "></td>
    </tr>
</table>
</form>

<script LANGUAGE="javascript">
<!--
$().ready(function() {
	  $('form').checkForm(1);
	});
//-->
</script>
</body>
</html>